package com.bm.domain;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Bill {
	private Integer billsId;
	private Goods goods;
	private Integer goodsId;
	private Integer count;
	private double deal;
	private Integer payMent;
	private Provider provider;
	private Integer proId;
	private String description;
	private Date billsDate;
	private Integer userId;
	
	public Integer getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}
	public Integer getProId() {
		return proId;
	}
	public void setProId(Integer proId) {
		this.proId = proId;
	}
	public Integer getUserId() {
		return userId;
	}
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	public Integer getBillsId() {
		return billsId;
	}
	public void setBillsId(Integer billsId) {
		this.billsId = billsId;
	}
	public Goods getGoods() {
		return goods;
	}
	public void setGoods(Goods goods) {
		this.goods = goods;
	}
	public Integer getCount() {
		return count;
	}
	public void setCount(Integer count) {
		this.count = count;
	}
	public double getDeal() {
		return deal;
	}
	public void setDeal(double deal) {
		this.deal = deal;
	}
	public Integer getPayMent() {
		return payMent;
	}
	public void setPayMent(Integer payMent) {
		this.payMent = payMent;
	}
	public Provider getProvider() {
		return provider;
	}
	public void setProvider(Provider provider) {
		this.provider = provider;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public String getBillsDate() {
		DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
		dateFormat.format(billsDate);
		return dateFormat.format(billsDate);
	}
	public void setBillsDate(Date billsDate)  {
		this.billsDate = billsDate;
	}
	public Bill(Integer goodsId, Integer count, double deal, Integer payMent,
			Integer proId, String description, Date billsDate, Integer userId) {
		super();
		this.goodsId = goodsId;
		this.count = count;
		this.deal = deal;
		this.payMent = payMent;
		this.proId = proId;
		this.description = description;
		this.billsDate = billsDate;
		this.userId = userId;
	}
	public Bill() {
		super();
	}
	
	
}
